package cn.dongjak.example.spring.security.web.api;

import cn.dongjak.example.spring.security.vo.ApiResponse;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {


    @GetMapping("/test")
    public ResponseEntity<ApiResponse> test() {
        return ResponseEntity.ok(ApiResponse.builder().code(1).message("成功访问!").build());
    }

}
